package org.test.demo.redisdemo;


import org.apache.log4j.Logger;
import org.junit.Test;

import junit.framework.TestCase;
import redis.clients.jedis.Jedis;

public class RedisApp  {
	@Test
	public void testConn1(){
		Jedis jedis = new Jedis("localhost",6379);
//		jedis.set("foo", "bar");
		String value = jedis.get("foo");
		Logger log = Logger.getLogger(RedisApp.class);
		log.info("value:"+value);
	}
	
}
